import { BaseCommand } from "./BaseCommand";
import { ArrayPlus } from "cax-base";

export class CommandHistory {
  private _history: ArrayPlus<BaseCommand> = new ArrayPlus([]);

  pop() {
    return 0;
  }

  push(cmd: BaseCommand) {
    this._history.push(cmd);
  }

  getAll() {
    return this._history;
  }

  remove(cmd: BaseCommand) {
    this._history.remove(cmd);
  }
}
